package com.yzy.vo;

/**
 * @author yangzhenyu
 * @version 1.0
 * @description:
 * @date 2022/7/5 14:17
 */
public class Result<T> {
    public static String RETURN_CODE_SUCCESS = "0";
    public static String RETURN_CODE_UNKNOWN_EXCEPTION = "99999999";
    public static String RETURN_MESSAGE_SUCCESS = "成功";
    private String code;
    private String message;
    private T data;

    public Result() {
    }

    public Result(String code, String message) {
        this.code = code;
        this.message = message;
    }




    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getData() {
        return this.data;
    }
}

